package com.service.atm;

import com.bpms.common.CommonUtil;
import com.bpms.common.JdbcWorker;
import com.bpms.common.VO;
import com.bpms.esb.IService;

public class Savereceiptpath implements IService {

	@Override
	public VO exec(VO arg0) {
		JdbcWorker j=null;
		VO vv = new VO();
		try{
			j = new JdbcWorker();
			j.startTransaction();
			
			VO v=new VO();
			v.setAttr("RECEIPTPATH1",arg0.getAttr("front_receiptPath"));
			v.setAttr("RECEIPTPATH2", arg0.getAttr("back_receiptPath"));
			
			VO k = new VO();
			k.voType = "CM_DJB";
			k.keyString = "BIZID";
			k.setAttr("BIZID",arg0.getAttr("BIZID"));
			
			j.update(v, k);
			j.commit();
		
			vv.setAttr("result", "0000");
			vv.setAttr("msg", "更新成功");
		}catch(Exception e){
			CommonUtil.debug("Savedealinfo  error", e);
			vv.setAttr("result", "9999");
			vv.setAttr("msg", "更新失败");
			try {
				j.rollback();
			} catch (Exception e1) {
				e1.printStackTrace();
			}
			
			}
		
		return vv;

	}
}
